import { Lut } from '../thirdparty/three/imports';

export class Lut3D
{
    private _lut: Lut;

    constructor()
    {
        this._lut = new Lut();
    }

    createCanvas()
    {
        const canvas = this._lut.createCanvas();

        return canvas;
    }

    updateCanvas(canvas: HTMLCanvasElement)
    {
        return this._lut.updateCanvas(canvas);
    }

    setColorMap(colormap?: string, numberofcolors?: number)
    {
        this._lut.setColorMap(colormap, numberofcolors);

        return this;
    }

    setMax(max: number)
    {
        this._lut.setMax(max);

        return this;
    }

    setMin(max: number)
    {
        this._lut.setMin(max);

        return this;
    }

    getColor(alpha: number)
    {
        return this._lut.getColor(alpha);
    }
}
